namespace Digitalmes.Application.Services;

/// <summary>
/// 点检标件查询服务。
/// </summary>
public interface IStandardPartsQueryService : IApplicationService
{
    /// <summary>
    /// 检查零件码是否为标件，是否需要在当前工位进行点检。
    /// </summary>
    /// <param name="sn">零件码</param>
    /// <param name="lineId">产线 Id</param>
    /// <param name="workstationId">工位 Id</param>
    /// <param name="cancellationToken"></param>
    /// <returns></returns>
    Task<(bool isStandardParts, bool needInspect)> IsStandardPartsAndWorkAsync(string sn, long lineId, long workstationId, CancellationToken cancellationToken = default);
}
